Repository navigation
Generated secrets instead of literals (dittofeed, cryptomator, langfuse), langfuse worker, pinned images, index drift (#138) - #139
Merged
Conversation
Follow-ups from #136 that the templates can fix on their own. - dittofeed: SECRET_KEY and the dashboard PASSWORD are generated at deploy. SECRET_KEY is 43 random base64 characters plus '=', which decodes to the 32 bytes Dittofeed's AES-256-GCM key needs. - cryptomator: HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET is generated and shared by name between Hub and the Keycloak companion; the seed realm reads it, and a generated CRYPTOMATOR_REALM_ADMIN_PASSWORD, through $(NAME) references that Kubernetes expands. - langfuse: add the langfuse-worker companion (v3 ingestion; inherits the web app's env). Pin web and worker to 3.225.11, which is what `3` points at now. NEXTAUTH_SECRET and SALT are generated. The startup wait loop dials $PGPORT instead of a hard-coded 5432. - posthog: pin the image to the master commit tag that `latest` points at now (PostHog publishes no release tags). - index.json: apply the 8 add-on drifts sync-index-addons.py reports (wagtail gains Cluster; the rest are reorders) without reformatting the file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #138. This covers the parts fixable in templates alone; the rest needs platform support (listed below).
How generated secrets work (checked in kubero-server
dev){{KUBERO_GEN_*}}tokens are replaced anywhere inside an env value, with a fresh value per app.ALNUM: the dashboard'smaterializeSharedGenSecretsand the server's branch path both do this.HEXis never shared.$(NAME)references are ordered byorderEnvVarsByReference, then expanded by Kubernetes.Changes
SECRET_KEYis now{{KUBERO_GEN_ALNUM:43}}=. Dittofeed decodes it from base64 and needs exactly 32 bytes (AES-256-GCM); checked over 20k samples.PASSWORDis generated (ALNUM:24).HUB_KEYCLOAK_SYSTEM_CLIENT_SECRETis generated and set on both Hub and the Keycloak companion.CRYPTOMATOR_REALM_ADMIN_PASSWORD. The realm JSON reads both via$(...). The admin password staystemporarywithUPDATE_PASSWORD, so it must be changed at first login.langfuse-workercompanion (ghcr.io/langfuse/langfuse-worker:3.225.11,serviceType: worker,inheritEnvFrom: primary, the n8n-worker pattern). v3 needs it for ingestion.3to3.225.11(the same digest today).NEXTAUTH_SECRETandSALTare generated (ALNUM:32) and inherited by the worker.$PGPORTinstead of a hard-coded 5432.latestpinned to48912b83f12851f5ca9188750b6ade3b97f93616, the same digest aslatesttoday. PostHog publishes only per-commit tags.sync-index-addons.pyapplied by hand in minimal hunks. Only wagtail is a real change ([]→["Cluster"]); the other 7 just reorder add-ons. The script now reports 0 updates.Validation
lint-template-addons.py: OK.migrate-to-communal-db-env.py --check: the same 6 known failures as before.dev's realvalidateAddonResourceDefinitions/appSecurityContextViolations): 0 of 300 templates fail.instantiateTemplateGroup,orderEnvVarsByReferenceandfindEnvInterpolationProblems, plus Kubernetes$(...)expansion:SALT,NEXTAUTH_SECRET,ENCRYPTION_KEY, the database URL, the S3 secret and the MinIO password.Not done (needs platform support, filed separately)
ENCRYPTION_KEYstays literal: it must be 64 hex characters, andHEXtokens aren't shared across a group.keycloakdatabase and dittofeed's TemporalCREATEDBon shared zones.HUB_KEYCLOAK_PUBLIC_URLmust still be set by hand after deploy.cgr.dev/chainguard/minio) stays onlatest; no other tags exist.exposeInternetsemantics need dashboard/server changes.